﻿function ExecuteCode() {
    var editorcode = Xrm.Page.getControl("WebResource_dojoeditor").getObject().contentWindow.window.getEditorValue();
    eval(editorcode);
}

function DojoOnSave() {
    var editorcode = Xrm.Page.getControl("WebResource_dojoeditor").getObject().contentWindow.window.getEditorValue();
    Xrm.Page.getAttribute("dojo_sourcecode").setValue(editorcode);
}